package com.example.qinghe.service.sale;

import com.example.qinghe.dao.sale.ConnectionqhMapper;
import com.example.qinghe.entity.communication.Staff;
import com.example.qinghe.entity.sale.Connectionqh;
import com.example.qinghe.entity.sale.Opportunityqh;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConnectionqhService {

    @Autowired
    private ConnectionqhMapper dao;

    public List<Connectionqh> selectConnectionqhByCustomerId(Long id){
        return dao.selectConnectionqhByCustomerId(id);
    }

    public List<Connectionqh> selectConnectionqhByOpportunityId(Long id){return dao.selectConnectionqhByOpportunityId(id);}

    public int insertConnectionqh(Connectionqh connectionqh){
        return dao.insertConnectionqh(connectionqh);
    }



    public List<Staff> selectAllRelativeStaff(Long id){
        return dao.selectAllRelativeStaff(id);
    }

    public List<Opportunityqh> selectAllRelativeOpportunity(Long id){
        return dao.selectAllRelativeOpportunity(id);
    }

}
